using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MimeCloud.AssetManagement.Business.Interface;

namespace MimeCloud.AssetManagement.Editor.AssetCreation.Repository
{
    public class LocalRepository
    {
        public static bool IsAssetContentLocallyStored(IAssetContent content)
        {
            //must only have 1 repo
            if (content.AssetContentRepositoryList.Count != 1)
                return false;

            //repo must be of a certain type
            if (content.AssetContentRepositoryList[0] is MemorySingleAssetRepository || content.AssetContentRepositoryList[0] is LocalFileStoreSingleAssetRepository)
                return true;

            //doesn't match criteria
            return false;
        }
    }
}
